/* 校园智慧中枢系统 - 主样式文件 */

/* 导入全局样式 */
@import './styles/global.css';
/* 导入科技特效样式 */
@import './styles/tech-effects.css';

/* 应用特定样式 */
#app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* 确保字体加载 */
@font-face {
  font-family: 'Digital';
  src: url('data:font/woff2;base64,') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 特殊动画效果 */
.neon-glow {
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from {
    text-shadow: 
      0 0 5px var(--primary-color),
      0 0 10px var(--primary-color),
      0 0 15px var(--primary-color);
  }
  to {
    text-shadow: 
      0 0 10px var(--primary-color),
      0 0 20px var(--primary-color),
      0 0 30px var(--primary-color),
      0 0 40px var(--primary-color);
  }
}

/* 科技感边框 */
.tech-border {
  position: relative;
}

.tech-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* 数据流动效果 */
.data-flow {
  position: relative;
  overflow: hidden;
}

.data-flow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.4),
    transparent
  );
  animation: dataFlow 2s infinite;
}

@keyframes dataFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 全息效果 */
.hologram {
  position: relative;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 70%
  );
  background-size: 20px 20px;
  animation: hologramShift 4s linear infinite;
}

@keyframes hologramShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

/* 电路板样式 */
.circuit-board {
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* 扫描线效果 */
.scan-line {
  position: relative;
  overflow: hidden;
}

.scan-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% {
    top: -2px;
  }
  100% {
    top: 100%;
  }
}
